package com.itheima.spec.service.impl;


import com.itheima.goods.pojo.Goods;
import com.itheima.spec.service.GoodsService;
import entity.PageResult;
import entity.Result;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class GoodsServiceImpl implements GoodsService {


    @Override
    public Goods findById(Integer id) {
        return null;
    }

    @Override
    public void add(Goods goods) {

    }

    @Override
    public void upGoods(Integer id) throws Exception {

    }

    @Override
    public void downGoods(Integer id) throws Exception {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void updateStatus(Integer id, String status) {

    }

    @Override
    public List<Goods> findAll() {
        return null;
    }

    @Override
    public Result buy(Integer goodId, Integer buyNum) {
        return null;
    }
}
